package com.prs.crm.domain.sale;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;
import com.prs.crm.domain.stock.Product;

@Entity
@Table(name = "sale_returnsDetail")
public class ReturnsDetail extends BaseEntity {

	private static final long serialVersionUID = 1L;

	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;

	private String name;

	@ManyToOne
	private Product product;

	@ManyToOne
	private Returns returns;

	/**
	 * 原价
	 */
	private Double originalCost;

	/**
	 * 现价
	 */
	private Double nowCost;
	/**
	 * 总的数量（发货和未发货）
	 */
	private int returnNum;
	/**
	 * 折扣
	 */
	private Double rebate;
	/**
	 * 总价
	 */
	private Double totalPrice;
	/**
	 * 退货详细
	 */
	private String detailsAll;
	/**
	 * 发货数量
	 */
	private Integer reallyNum;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Product getProduct() {
		return product;
	}

	public void setProduct(Product product) {
		this.product = product;
	}

	public Returns getReturns() {
		return returns;
	}

	public void setReturns(Returns returns) {
		this.returns = returns;
	}

	public Double getOriginalCost() {
		return originalCost;
	}

	public void setOriginalCost(Double originalCost) {
		this.originalCost = originalCost;
	}

	public Double getNowCost() {
		return nowCost;
	}

	public void setNowCost(Double nowCost) {
		this.nowCost = nowCost;
	}

	public int getReturnNum() {
		return returnNum;
	}

	public void setReturnNum(int returnNum) {
		this.returnNum = returnNum;
	}

	public Double getRebate() {
		return rebate;
	}

	public void setRebate(Double rebate) {
		this.rebate = rebate;
	}

	public Double getTotalPrice() {
		return totalPrice;
	}

	public void setTotalPrice(Double totalPrice) {
		this.totalPrice = totalPrice;
	}

	public String getDetailsAll() {
		return detailsAll;
	}

	public void setDetailsAll(String detailsAll) {
		this.detailsAll = detailsAll;
	}

	public Integer getReallyNum() {
		return reallyNum;
	}

	public void setReallyNum(Integer reallyNum) {
		this.reallyNum = reallyNum;
	}

}
